package com.atguigu.result;

import lombok.Getter;

/**
 * ClassName ResultCodeEnum
 * Package: com.atguigu.result
 * ProjectName guigu-oa-parent
 * Description:
 * 统一返回结果状态信息常量类
 *
 * @Author: 比特张
 * @Create: 2023/4/18 - 10:24
 * @Version: v1.0
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "响应成功"),
    FAIL(201, "响应失败"),
    LOGIN_ERROR(208, "认证失败"),
    DELETE_ERROR(101, "删除失败");

    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
